package test;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;

/**
 * PROJECT_NAME: git-Test
 * NAME: test1
 *
 * @AUTHOR: zhang
 * DATE: 2024/1/2
 * DESCRIPTION :
 */
public class test1 {
    public static void main(String[] args) {
        System.out.println("第一次提交");
        System.out.println("第二次提交");
        System.out.println("第三次提交");
        System.out.println("第五次提交");

        Map<String,String> infoMap = new HashMap<>();
        infoMap.put("张三","23");
        infoMap.put("李四","24");
        infoMap.put("王五","25");


        infoMap.forEach((s, s2) -> System.out.println(s+":"+s2));
        System.out.println("-------------------------------");

        Set<Map.Entry<String, String>> entries = infoMap.entrySet();
        for (Map.Entry<String, String> entry : entries) {
            String key = entry.getKey();
            String value = entry.getValue();
            System.out.println(key);
            System.out.println(value);
        }
    }
}
